DELETE
/
1
/
indexes
/
{indexName}
/
{model}
/
recommend
/
rules
/
{objectID}
curl --request DELETE \
  --url https://{appId}.algolianet.com/1/indexes/{indexName}/{model}/recommend/rules/{objectID} \
  --header 'x-algolia-api-key: <api-key>' \
  --header 'x-algolia-application-id: <api-key>'
{
  "taskID": 1514562690001,
  "deletedAt": "2023-06-27T14:42:38.831Z"
}

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Path Parameters

indexName
string
required

Name of the index on which to perform the operation.

Example:

"ALGOLIA_INDEX_NAME"

model
enum<string>
required
Available options:
related-products,
bought-together,
trending-facets,
trending-items
objectID
string
required

Unique record identifier.

Example:

"test-record-123"

Response

200
application/json

OK

Response, taskID, and deletion timestamp.